﻿/**********************  此代码是由代码生成器生成，生成时间： 2012/12/4 21:28:59  ************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Data;

namespace CRM.Entity
{
    [DataContract]
    public partial class ArticleInfo
    {
        public ArticleInfo()
        {

        }

        public ArticleInfo(DataRow row)
        {
        
            if (row["ArticleId"] != null && row["ArticleId"].ToString() != "")
            {
                this.ArticleId =Convert.ToInt64(row["ArticleId"]);
            } 
            if (row["Title"] != null && row["Title"].ToString() != "")
            {
                this.Title =Convert.ToString(row["Title"]);
            } 
            if (row["ArticleType"] != null && row["ArticleType"].ToString() != "")
            {
                this.ArticleType =Convert.ToInt32(row["ArticleType"]);
            } 
            if (row["Image"] != null && row["Image"].ToString() != "")
            {
                this.Image =Convert.ToString(row["Image"]);
            } 
            if (row["ArticleContent"] != null && row["ArticleContent"].ToString() != "")
            {
                this.ArticleContent =Convert.ToString(row["ArticleContent"]);
            } 
            if (row["CreateTime"] != null && row["CreateTime"].ToString() != "")
            {
                this.CreateTime =Convert.ToDateTime(row["CreateTime"]);
            } 
            if (row["CreateUser"] != null && row["CreateUser"].ToString() != "")
            {
                this.CreateUser =Convert.ToString(row["CreateUser"]);
            } 
            if (row["ClickCount"] != null && row["ClickCount"].ToString() != "")
            {
                this.ClickCount =Convert.ToInt32(row["ClickCount"]);
            } 
            if (row["Disable"] != null && row["Disable"].ToString() != "")
            {
                this.Disable =Convert.ToBoolean(row["Disable"]);
            } 
            if (row["IsNew"] != null && row["IsNew"].ToString() != "")
            {
                this.IsNew =Convert.ToBoolean(row["IsNew"]);
            } 
            if (row["IsTop"] != null && row["IsTop"].ToString() != "")
            {
                this.IsTop =Convert.ToBoolean(row["IsTop"]);
            } 
        }

       /**********************************  ArticleId ************************************************/
        [DataMember]
        public Int64 ArticleId
        {
          get;
          set;
        }
       /**********************************  Title ************************************************/
        [DataMember]
        public String Title
        {
          get;
          set;
        }
       /**********************************  ArticleType ************************************************/
        [DataMember]
        public Int32 ArticleType
        {
          get;
          set;
        }
       /**********************************  Image ************************************************/
        [DataMember]
        public String Image
        {
          get;
          set;
        }
       /**********************************  ArticleContent ************************************************/
        [DataMember]
        public String ArticleContent
        {
          get;
          set;
        }
       /**********************************  CreateTime ************************************************/
        [DataMember]
        public DateTime CreateTime
        {
          get;
          set;
        }
       /**********************************  CreateUser ************************************************/
        [DataMember]
        public String CreateUser
        {
          get;
          set;
        }
       /**********************************  ClickCount ************************************************/
        [DataMember]
        public Int32 ClickCount
        {
          get;
          set;
        }
       /**********************************  Disable ************************************************/
        [DataMember]
        public Boolean Disable
        {
          get;
          set;
        }
       /**********************************  IsNew ************************************************/
        [DataMember]
        public Boolean IsNew
        {
          get;
          set;
        }
       /**********************************  IsTop ************************************************/
        [DataMember]
        public Boolean IsTop
        {
          get;
          set;
        }
    }
}